package cn.zqy.demo.day07;



public class Demo05ArrayPersion {
    public static void main(String[] args) {
        Persion[] per = new Persion[3];
        // null
        System.out.println(per[0]);

        Persion p1 = new Persion(18,"王昭君");
        Persion p2 = new Persion(33,"网名");
        Persion p3 = new Persion(67,"李白");

        per[0] = p1;
        per[1] = p2;
        per[2] = p3;

        System.out.println("地址： " + p1);

        // 18
        System.out.println(p1.getAge());
        System.out.println(per[0].getAge());


    }

}
